<?php
$this->breadcrumbs=array(
	'新闻中心',
);

?>

<?php $Arrays=$dataProvider->getData();?>
<div  style = "padding:0px 20px;">
		<div class="">
			<form id="form1" action="" style = "padding:10px 0px 0px 8px;margin:0px;">
				<span>搜索：</span>
				<input class="width80" type="text" name='n_title'  onfocus='checkifocus("新闻标题..",this)' onblur='checkiout("新闻标题..",this)' value="<?=isset($_GET['n_title'])&&$_GET['n_title']?$_GET['n_title']:"新闻标题.."?>">
				<button type="submit" class="btn serach">搜索</button>
			</form>
		</div>
		<div class = " listlink">
			<table class="table specialtylist ">
				<thead>
					<tr>
					<td width="60%">新闻标题</td>	
					<td width="40%">发布时间</td>
					</tr>
					</thead>
				<tbody>
				<?php 	if(!$Arrays){?>
							<tr>
							<td colspan='2'>没有找到数据</td>
							</tr>
				<?php 	}else{
							foreach($Arrays as $key=>$data){
                                $this->renderPartial('_view',array("data"=>$data,"key"=>$key));
							}
						}?>
				</tbody>
			</table>
		</div>
		<div class="clear ohidden">
			<div class="pagination pull-left">
			<?php 	$this->widget('CBootstraplinkPager',array(
						'pages'=>$dataProvider->pagination,
					));?>
			</div>
			<div class="pagination pull-right">
				当前第<span class="blcolor weight"><?=$dataProvider->pagination->currentPage+1?></span>页，
				共<span class="blcolor weight"><?=ceil($dataProvider->pagination->itemCount/$dataProvider->pagination->pageSize)?></span>页，
				共有<span class="blcolor weight"><?=$dataProvider->pagination->itemCount?></span>条数据。
			</div>
		</div>
	</div>